<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宿舍成员 - 我们的温馨小窝</title>
    <style>
        /* 基础样式 */
        body {
            font-family: '微软雅黑', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #f9f9f9, #e0e0e0);
            color: #333;
            overflow-x: hidden;
        }

        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        header {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .top {
            height: 30px;
            line-height: 30px;
            background: #f3f3f3;
            border-bottom: 1px solid #dfdfdf;
        }

        .box {
            width: 1170px;
            margin: auto;
        }

        .welcome {
            float: left;
        }

        .topnav {
            float: right;
        }

        .topnav li {
            float: left;
        }

        .topnav li a {
            display: block;
            color: blue;
            padding: 0 10px;
        }

        .logo-search {
            padding: 5px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo img {
            width: 100px;
            margin-right: 10px;
        }

        .logo h2 {
            font-size: 22px;
            color: #b40404;
            margin-top: 15px;
        }

        .logo p {
            margin-top: 4px;
            color: #818181;
        }

        .search input.input_text {
            border: 0;
            line-height: 36px;
            height: 36px;
            width: 300px;
            background: #f3f3f3;
            text-indent: 1em;
        }

        .search input.input_submit {
            border: 0;
            background-color: royalblue;
            color: #fff;
            line-height: 36px;
            font-size: 15px;
            width: 100px;
            cursor: pointer;
            letter-spacing: 10px;
        }

        .daohanglan {
            list-style-type: none;
            margin: 0;
            padding: 0;
            background-color: orange;
            display: flex;
            justify-content: center;
        }

        .dropbtn {
            display: inline-block;
            color: white;
            text-align: center;
            padding: 18px 55px;
            text-decoration: none;
            font-size: 20px;
            transition: background 0.3s ease;
        }

        .dropbtn:hover {
            background-color: royalblue;
        }

        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #fff;
            min-width: 190px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1;
        }

        .dropdown-content a {
            color: black;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            text-align: left;
        }

        .dropdown-content a:hover {
            background-color: #dfdfdf;
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        .banner {
            width: 100%;
            height: 300px;
            background-image: url("img/banner.jpg");
            background-size: cover;
            background-position: center;
            position: relative;
            overflow: hidden;
        }

        .banner::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
        }

        .banner h1 {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 3em;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
        }

        .container {
            padding: 20px;
        }

        h2 {
            font-family: '手写体', cursive;
            color: #ff8c00;
            text-align: center;
            margin-bottom: 20px;
        }

        .members-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 20px;
        }

        .member {
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            text-align: center;
        }

        .member:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .member img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin-bottom: 10px;
            object-fit: cover;
        }

        .member-info h3 {
            margin: 0;
            font-size: 20px;
            color: #333;
        }

        .member-info p {
            margin: 5px 0;
            color: #666;
            font-size: 14px;
        }

        .family-photo {
            text-align: center;
            margin: 20px 0;
        }

        .family-photo img {
            width: 100%;
            max-width: 600px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
    .duty-table {
        margin: 20px 0;
        overflow-x: auto; /* 防止表格内容过多时溢出 */
    }

    .duty-table table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        animation: fadeIn 1s ease-out;
    }

    .duty-table th, .duty-table td {
        padding: 15px;
        text-align: center;
        border: 1px solid #e0e0e0;
    }

    .duty-table th {
        background-color: #ff8c00;
        color: white;
        font-size: 18px;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .duty-table td {
        font-size: 16px;
        color: #555;
        transition: background-color 0.3s ease;
    }

    .duty-table tr:hover td {
        background-color: #f9f9f9;
    }

    .duty-table tr:nth-child(even) {
        background-color: #f5f5f5;
    }

    .duty-table tr:nth-child(odd) {
        background-color: white;
    }

    .duty-table tr:last-child td {
        border-bottom: none;
    }

    .duty-table tr:last-child td:first-child {
        border-bottom-left-radius: 15px;
    }

    .duty-table tr:last-child td:last-child {
        border-bottom-right-radius: 15px;
    }

    .duty-table th:first-child {
        border-top-left-radius: 15px;
    }

    .duty-table th:last-child {
        border-top-right-radius: 15px;
    }

        footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px;
            margin-top: 20px;
        }

        /* 动画效果 */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .member, .family-photo, .duty-table {
            animation: fadeIn 1s ease-out;
        }
    </style>
</head>
<body>
    <header>
        <div class="top">
            <div class="box">
                <div class="welcome">欢迎来到10215宿舍</div>
                <div class="topnav">
                    <ul>
                        <li><a href="注册登录.html">登录|注册</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="logo-search box">
            <div class="logo">
                <img src="img/logo.jpg" alt="宿舍Logo" />
            </div>
            <div class="search">
                <form action="">
                    <input type="text" placeholder="请输入关键词……" class="input_text" />
                    <input type="submit" value="搜索" class="input_submit" />
                </form>
            </div>
        </div>
    </header>
    <nav>
        <ul class="daohanglan">
            <li class="dropdown">
                <a href="index.html" class="dropbtn">首页</a>
            </li>
            <li class="dropdown">
                <a href="宿舍成员.html" class="dropbtn">宿舍成员</a>
            </li>
            <li class="dropdown">
                <a href="宿舍生活3.html" class="dropbtn">宿舍生活</a>
            </li>
            <li class="dropdown">
                <a href="宿舍故事.html" class="dropbtn">宿舍故事</a>
            </li>
        </ul>
    </nav>
    <div class="banner">
        <h1>欢迎来到10215宿舍</h1>
    </div>
    <div class="container">
        <h2>宿舍成员</h2>
        <div class="members-grid">
            <div class="member">
                <img src="img/hwq.jpg" alt="黄晚晴">
                <div class="member-info">
                    <h3>黄晚晴</h3>
                    <p>专业：软件技术</p>
                    <p>学号：2323730125</p>
                    <p>个性签名：代码改变世界！</p>
                    <p>兴趣爱好：编程、音乐、旅行</p>
                </div>
            </div>
            <div class="member">
                <img src="img/dhq.jpg" alt="戴海琴">
                <div class="member-info">
                    <h3>戴海琴</h3>
                    <p>专业：软件技术</p>
                    <p>学号：2323730116</p>
                    <p>个性签名：生活不止眼前的代码，还有诗和远方。</p>
                    <p>兴趣爱好：摄影、阅读、美食</p>
                </div>
            </div>
            <div class="member">
                <img src="img/gcy.jpg" alt="高晨雨">
                <div class="member-info">
                    <h3>高晨雨</h3>
                    <p>专业：软件技术</p>
                    <p>学号：2323730126</p>
                    <p>个性签名：细节决定成败。</p>
                    <p>兴趣爱好：电影</p>
                </div>
            </div>
            <div class="member">
                <img src="img/wll.jpg" alt="王乐乐">
                <div class="member-info">
                    <h3>王乐乐</h3>
                    <p>专业：软件技术</p>
                    <p>学号：2323730127</p>
                    <p>个性签名：安全无小事。</p>
                    <p>兴趣爱好：篮球、游戏、音乐</p>
                </div>
            </div>
        </div>
        <div class="duty-table">
            <h2>宿舍值日表</h2>
            <table>
                <thead>
                    <tr>
                        <th>星期</th>
                        <th>值日生</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>星期一</td>
                        <td>黄晚晴</td>
                    </tr>
                    <tr>
                        <td>星期二</td>
                        <td>戴海琴</td>
                    </tr>
                    <tr>
                        <td>星期三</td>
                        <td>高晨雨</td>
                    </tr>
                    <tr>
                        <td>星期四</td>
                        <td>王乐乐</td>
                    </tr>
                    <tr>
                        <td>星期五</td>
                        <td>黄晚晴，王乐乐</td>
                    </tr>
                    <tr>
                        <td>星期六</td>
                        <td>戴海琴，高晨雨</td>
                    </tr>
                    <tr>
                        <td>星期日</td>
                        <td>全体大扫除</td>
                    </tr>
                </tbody>
            </table>
        </div>
    <footer>
        <p>戴海琴 | 高晨雨 | 黄晚晴 | 王乐乐</p>
        <p>&copy; 10215宿舍 版权所有.</p>
    </footer>
</body>
</html>